using System;

namespace OpenWaves.Caching
{
    public static class LockManager
    {
        public static readonly ILockManager Null = new NullLockManager();

        private class NullLockManager : ILockManager
        {
            public bool TryAcquireLock(string key, TimeSpan timeout)
            {
                return true;
            }

            public void ReleaseLock(string key)
            {
            }
        }
    }
}